package com.xauto.pioneer.appuser.model;

import org.json.JSONObject;

/**
 * Created by Administrator on 2018/7/13.
 */

public class MonthlyRentRuleInfo extends BaseModel<MonthlyRentRuleInfo> {
    /** 费用规则ID*/
    public String parking_rule_id;
    /** 费用规则名称*/
    public String rule_name;
    /** 费用规则价格*/
    public String price;
    /** 费用规则开始时间*/
    public String start_time;
    /** 费用规则结束时间*/
    public String end_time;
    @Override
    public MonthlyRentRuleInfo parse(JSONObject jsonObject) {
        if(jsonObject != null) {
            parking_rule_id = jsonObject.optString("parking_rule_id");
            rule_name = jsonObject.optString("rule_name");
            price = jsonObject.optString("price");
            start_time = jsonObject.optString("start_time");
            end_time = jsonObject.optString("end_time");
            return this;
        }
        return null;
    }
}
